home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
keypres2.zip
/
DOKEY.BAT
next >
Wrap
DOS Batch File
|
1987-11-14
|
640b
|
36 lines
ECHO OFF
REM Short demo for KEYPRESS.COM.
REM Doesn't do anything, but shows you how to use it.
REM David Kirschbaum, Toad Hall
:QUERY
ECHO PRESS A OR B OR C
ECHO A 1DIRPLUS
ECHO B PC-WRITE
ECHO C Something weird
Echo D Exit to DOS
KEYPRESS A B C D
if errorlevel 4 goto Exit
if errorlevel 3 goto c
if errorlevel 2 goto b
if errorlevel 1 goto a
ECHO TRY AGAIN
GOTO QUERY
:a
Echo I would have done this:
REM 1DIR
Echo 1DIR
goto Query
:b
Echo I would have done this:
REM CD\PCW
REM ED
Echo CD\PCW
Echo ED
goto Query
:c
Echo I would have done this:
REM BOGUS
Echo BOGUS
goto Query
:exit